package yyh.tianbiao.beanUP;

import java.util.Calendar;

public class ScaleBean {
	
	private String patient_code;
	private String incase_scale_name;
	private Double incase_scale_score;
	private Calendar incase_date;
	
	
	
	@Override
	public String toString() {
		return "ScaleBean [patient_code=" + patient_code
				+ ", incase_scale_name=" + incase_scale_name
				+ ", incase_scale_score=" + incase_scale_score
				+ ", incase_date=" + incase_date + "]";
	}
	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result
				+ ((incase_date == null) ? 0 : incase_date.hashCode());
		result = prime
				* result
				+ ((incase_scale_name == null) ? 0 : incase_scale_name
						.hashCode());
		result = prime
				* result
				+ ((incase_scale_score == null) ? 0 : incase_scale_score
						.hashCode());
		result = prime * result
				+ ((patient_code == null) ? 0 : patient_code.hashCode());
		return result;
	}
	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		ScaleBean other = (ScaleBean) obj;
		if (incase_date == null) {
			if (other.incase_date != null)
				return false;
		} else if (!incase_date.equals(other.incase_date))
			return false;
		if (incase_scale_name == null) {
			if (other.incase_scale_name != null)
				return false;
		} else if (!incase_scale_name.equals(other.incase_scale_name))
			return false;
		if (incase_scale_score == null) {
			if (other.incase_scale_score != null)
				return false;
		} else if (!incase_scale_score.equals(other.incase_scale_score))
			return false;
		if (patient_code == null) {
			if (other.patient_code != null)
				return false;
		} else if (!patient_code.equals(other.patient_code))
			return false;
		return true;
	}
	public String getPatient_code() {
		return patient_code;
	}
	public void setPatient_code(String patient_code) {
		this.patient_code = patient_code;
	}
	public String getIncase_scale_name() {
		return incase_scale_name;
	}
	public void setIncase_scale_name(String incase_scale_name) {
		this.incase_scale_name = incase_scale_name;
	}
	public Double getIncase_scale_score() {
		return incase_scale_score;
	}
	public void setIncase_scale_score(Double incase_scale_score) {
		this.incase_scale_score = incase_scale_score;
	}
	public Calendar getIncase_date() {
		return incase_date;
	}
	public void setIncase_date(Calendar incase_date) {
		this.incase_date = incase_date;
	}
	
	
	
	
}

































